import { mongoDB } from '../../../../../../../../../../../../conect_mongoDB_class_laugh_node';
import {
  mdb_suffix_active,
  mdb_suffix_static_history,
} from '../../../../../../../../../DataDefine/mdb_info';
import { spacename_user } from '../../../../../../../../user/DataDefine/sourceData';
import { spacename_functions } from '../../../../../DataDefine/sourceData';

/**
 * 获取 用户 函数 历史创建表
 * @param identity
 * @returns
 */
export function get_mdb_cur_user_functions_create(identity: string) {
  let path = `${spacename_user}_${identity}_${spacename_functions}_${mdb_suffix_static_history}`;

  return mongoDB.collection(path);
}

/**
 * 获取 用户 函数 活动表
 * @param identity
 * @returns
 */
export function get_mdb_cur_user_functions_active(identity: string) {
  let path = `${spacename_user}_${identity}_${spacename_functions}_${mdb_suffix_active}`;

  return mongoDB.collection(path);
}
